const express = require('express');
const path = require('path');
var app = express();
app.listen(3007,()=>{console.log('开启服务器')})
// 加载路由模块并注册成中间件
app.use('/api',path.join(__dirname,'routers','login'));
app.use('/my',path.join(__dirname,'routers','user'));
app.use('/my/article',path.join(__dirname,'routers','article'));
app.use('/my/article',path.join(__dirname,'routers','category'));
